package com.zfei.gfb.query.h5;

import com.zfei.gfb.bean.Const;
import com.zfei.gfb.bean.Page;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author fgh
 */
public class H5MyGoodsQuery extends Page {

    @ApiModelProperty("全部null，未兑换2，已兑换3")
    private Integer status;

    @ApiModelProperty(hidden = true)
    private Integer userId;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public static boolean checkType(Integer saleType) {
        if (saleType == null) {
            return false;
        }
        return saleType == Const.SALE_TYPE_ON || saleType == Const.SALE_TYPE_OFF;
    }
}

